import { INSPECTION_TARGET_OPTIONS } from '@/pages/supplier/constants/common'
import { list2Obj } from '@/pages/supplier/utils';
const TABLE_COLUMNS = [
  { title: '计划名称', key: 'planName' },
  { title: '出差地点', key: 'businessTripPlace' },
  { title: '出差时间', key: 'startTime' },
  { title: '出差人员', key: 'businessTripPerson' },
  { title: '考察目的',
    key: 'targetList',
    formatter (row, column, cellValue, index) {
      if (cellValue && cellValue.length) {
        return cellValue.map((i) => {
          return list2Obj(INSPECTION_TARGET_OPTIONS)[i]
        }).join()
      }
      return ''
    }
  },
  { title: '考察报告', key: 'reportId' },
  { title: '考察完成时间', key: 'inspectCompleteTime	' },
]

export default { TABLE_COLUMNS, }
